Create(TSource) Method (IEnumerable(TSource))

Task Parallel System.Threading

Creates an orderable partitioner from a IEnumerable<(Of <(T>)>) instance.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Create(Of TSource) ( _
	source As IEnumerable(Of TSource) _
) As OrderablePartitioner(Of TSource)
C#
public static OrderablePartitioner<TSource> Create<TSource>(
	IEnumerable<TSource> source
)

Parameters

source
Type: System.Collections.Generic..::.IEnumerable<(Of <(TSource>)>)
The enumerable to be partitioned.

Type Parameters

TSource
Type of the elements in source enumerable.

Return Value

An orderable partitioner based on the input array.

Remarks

The ordering used in the created partitioner is determined by the natural order of the elements as retrieved from the source enumerable.

See Also